<?php

use Illuminate\Database\Seeder;
use \Illuminate\Support\Facades\DB;
use \App\Services\Utils\CommonUtil;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'user_uuid'=>CommonUtil::getUUID(),
                'user_account'=>'super',
                'email'=>'super@qq.com',
                'main_cellphone'=>'15155154523',
                'password'=>md5('super'),
                'role_code'=>1,
                'is_delete'=>false,
            ],
            [
                'user_uuid'=>CommonUtil::getUUID(),
                'user_account'=>'admin',
                'email'=>'admin@qq.com',
                'main_cellphone'=>'15155154524',
                'password'=>md5('admin'),
                'role_code'=>2,
                'is_delete'=>false,
            ],
            [
                'user_uuid'=>CommonUtil::getUUID(),
                'user_account'=>'test',
                'email'=>'test@qq.com',
                'main_cellphone'=>'15155154525',
                'password'=>md5('admin'),
                'role_code'=>3,
                'is_delete'=>false,
            ]
        ]);
    }
}
